package com.chatdating.mapper;

import com.chatdating.entity.Audit;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface AuditMapper {
    @Select("SELECT * FROM audit WHERE uid = #{uid}")
    Audit getByUid(Integer uid);

    @Insert("INSERT INTO audit(aname, uname, result, reason, submission_time) VALUES(#{aname}, #{uname}, #{result}, #{reason}, #{submission_time})")
    void AddAudit(Audit audit);
}